-- GENERATED SPELL FOR [Grimtotem Mercenary] --


function spell0_11911(pUnit, Event) --@Pummel,n/a--
pUnit:FullCastSpellOnTarget(12555,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11911', 5327, 1)
end

function spell1_11911(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(15607,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11911', 653, 1)
end

function Sorts_11911(pUnit, Event)
local choix_sorts_11911 = math.random(0, 1)
if choix_sorts_11911 == 0 then
pUnit:RegisterEvent('spell0_11911', 1, 1)
end
if choix_sorts_11911 == 1 then
pUnit:RegisterEvent('spell1_11911', 1, 1)
end
end

function mob11911_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11911', math.random(1500, 3000), 1)
end

function mob11911_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11911_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11911_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11911, 1, 'mob11911_Action')
RegisterUnitEvent(11911, 2, 'mob11911_Leave')
RegisterUnitEvent(11911, 3, 'mob11911_Kill')
RegisterUnitEvent(11911, 4, 'mob11911_Die')
